package com.hsgene.consumables.service.api;

import com.hsgene.common.util.result.ApiResult;
import com.hsgene.consumables.service.api.impl.UserServiceImpl;
import com.hsgene.user.dto.user.employee.EmployeeDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "ms-mod-user", path = "/employee", fallback = UserServiceImpl.class)
public interface UserService {

    @GetMapping("{user_id}")
    ApiResult<EmployeeDto> findEmployee(@RequestParam("user_id") String userId);
}
